package Day08;

public class FoodsText {
    public static void main(String[] args) {
        Foods f1 = new Foods(001,"瑞士卷",67,888);

        Foods f2 = new Foods(002,"大刀肉",3,999);

        Foods f3 = new Foods(003,"沙琪玛",7,99);

        Foods[] arr = new Foods[3];

        arr[0] = f1;
        arr[1] = f2;
        arr[2] = f3;

        for (int i = 0; i < arr.length; i++) {
            Foods s = arr[i];
            System.out.println(s.getId() + ", " + s.getName()
                    + ", " + s.getPrice()+", " + s.getRemain());
        }

    }
}
